<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>检品列表</title>
<link href="/examine/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/examine/Public/admin/js/jquery.js"></script>

<link href="/examine/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/examine/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/examine/Public/admin/js/select-ui.min.js"></script>

        <script type="text/javascript" src="/examine/Public/My97DatePicker/WdatePicker.js"></script>


<script type="text/javascript">
$(document).ready(function(e) {
    $("#classtype,#level_id").uedSelect({
		width : 150			  
	});
});
</script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('product/index');?>">检品列表</a></li>
		</ul>
    </div>
    
    <div class="formbody">
		<ul class="toolbar"> 
		</ul> 
		<form name="seachform" id="seachform" action="<?php echo U('product/index');?>" method="post">
			<ul class="seachform">
				<li><label>S/N编码</label><input name="info[sncode]"  value="<?php echo ($sncode); ?>" type="text" class="scinput" /></li>
				<li><label>级别</label>
					<div class="vocation">
						<select id="level_id" name="info[level_id]">
							<option value="">请选择级别</option>
							<?php if(is_array($levels)): $i = 0; $__LIST__ = $levels;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($data["level_id"]); ?>" <?php if($data["level_id"] == $level_id ): ?>selected<?php endif; ?>><?php echo ($data["level_title"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</div>
				</li>
				<li>
                        <label>检测时间</label>
                        <input name="info[starttime]" id="starttime" class="dfinput" type="text" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd', maxDate: '#F{ $dp.$D(\'endtime\')||\'2100-10-01\' }'})"  style="width: 170px;" readonly value="<?php echo ($starttime); ?>" />-
                        <input name="info[endtime]" id="endtime" class="dfinput" type="text" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd', minDate: '#F{ $dp.$D(\'starttime\') }', maxDate: '2100-10-01'})"  style="width: 170px;" readonly value="<?php echo ($endtime); ?>" />
                        <i class="Validform_checktip"></i>
                    </li>	 
				 
				<li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
			</ul>
		</form>
		
		<table class="tablelist">
			<thead>
				<tr> 
					<th>编号</th> 
					<th>S/N编码</th> 
					<th>现象描述</th> 
					<th>级别</th> 
					<th>屏型号</th> 
					<th>箱号</th> 
					<th>检验时间</th> 
					<th>检验员</th> 
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$content): $mod = ($i % 2 );++$i;?><tr> 
					<td><?php echo ($content["product_id"]); ?></td>
					<td><?php echo ($content["sncode"]); ?></td>
					<td><?php echo ($content["remarks"]); ?></td>
					<td><?php echo ($content["level"]); ?></td>
					<td><?php echo ($content["model"]); ?></td>
					<td><?php echo ($content["cncode"]); ?></td>
					<td><?php echo (date("Y-m-d H:i:s",$content["addtime"])); ?></td>
					<td><?php echo ($content["realname"]); ?></td>  
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table> 
		<?php echo ($pageshow); ?> 
    </div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>

</html>